<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: gpu/containers/include/pcl/gpu/containers/impl/device_array.hpp 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('device__array_8hpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">device_array.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Software License Agreement (BSD License)</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  Copyright (c) 2011, Willow Garage, Inc.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  All rights reserved.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *  Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *  modification, are permitted provided that the following conditions</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  are met:</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *   * Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *     notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   * Redistributions in binary form must reproduce the above</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *     copyright notice, this list of conditions and the following</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *     disclaimer in the documentation and/or other materials provided</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *     with the distribution.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *   * Neither the name of Willow Garage, Inc. nor the names of its</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *     contributors may be used to endorse or promote products derived</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *     from this software without specific prior written permission.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *  &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> *  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> *  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> *  ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> *  POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> *  Author: Anatoly Baskeheev, Itseez Ltd, (myname.mysurname@mycompany.com)</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#ifndef PCL_GPU_CONTAINER_DEVICE_ARRAY_IMPL_HPP_</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#define PCL_GPU_CONTAINER_DEVICE_ARRAY_IMPL_HPP_</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a0573ce7da4c93785a2329b20d8e78484">   43</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a0573ce7da4c93785a2329b20d8e78484">pcl::gpu::DeviceArray&lt;T&gt;::DeviceArray</a>() {}</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#af13ad05c8e58f44e64762753862c1439">   44</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a0573ce7da4c93785a2329b20d8e78484">pcl::gpu::DeviceArray&lt;T&gt;::DeviceArray</a>(<span class="keywordtype">size_t</span> size) : <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a>(size * elem_size) {}</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#aad1b32819f9739f0783229878025459e">   45</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a0573ce7da4c93785a2329b20d8e78484">pcl::gpu::DeviceArray&lt;T&gt;::DeviceArray</a>(T *ptr, <span class="keywordtype">size_t</span> size) : <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a>(ptr, size * elem_size) {}</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#aee94d2ab8575b2e1ac9a5647e1c8f889">   46</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a0573ce7da4c93785a2329b20d8e78484">pcl::gpu::DeviceArray&lt;T&gt;::DeviceArray</a>(<span class="keyword">const</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a>&amp; other) : <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a>(other) {}</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a88c1a90c1ee03617dbfe112eaaae914a">   47</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray&lt;T&gt;</a>&amp; <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a88c1a90c1ee03617dbfe112eaaae914a">pcl::gpu::DeviceArray&lt;T&gt;::operator=</a>(<span class="keyword">const</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a>&amp; other)</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#aabaa701031e413b93ac832f95bc3ff08">DeviceMemory::operator=</a>(other); <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a4299ebb216c82bc4d17d38b7d5999f67">   50</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a4299ebb216c82bc4d17d38b7d5999f67">pcl::gpu::DeviceArray&lt;T&gt;::create</a>(<span class="keywordtype">size_t</span> size) </div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62">DeviceMemory::create</a>(size * elem_size); }</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#aab15724cf2bb42abd87c69a7eb3ec733">   52</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#aab15724cf2bb42abd87c69a7eb3ec733">pcl::gpu::DeviceArray&lt;T&gt;::release</a>()  </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#abc6efdb6b6a67dec7760509443beffe4">DeviceMemory::release</a>(); }</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a8503cd07a0b5cb1dbd71e2b0e83c9e63">   55</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a8503cd07a0b5cb1dbd71e2b0e83c9e63">pcl::gpu::DeviceArray&lt;T&gt;::copyTo</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a>&amp; other)<span class="keyword"> const</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="keyword"></span>{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#aac0093c66cf01a571cd16815e1189c84">DeviceMemory::copyTo</a>(other); }</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a2c37bf39d8afe561cfb3fcb15fff0a82">   57</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a2c37bf39d8afe561cfb3fcb15fff0a82">pcl::gpu::DeviceArray&lt;T&gt;::upload</a>(<span class="keyword">const</span> T *host_ptr, <span class="keywordtype">size_t</span> size) </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a5a6aec629c498c532916994f8188ad61">DeviceMemory::upload</a>(host_ptr, size * elem_size); }</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a86641905b12549130d92aaf90a85ac87">   59</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a86641905b12549130d92aaf90a85ac87">pcl::gpu::DeviceArray&lt;T&gt;::download</a>(T *host_ptr)<span class="keyword"> const </span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword"></span>{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#ad3dde5e26915ca28d8ce521edf211464">DeviceMemory::download</a>( host_ptr ); }</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a8b5e94bc49303dc096acdf74d3b7059a">   62</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a8b5e94bc49303dc096acdf74d3b7059a">pcl::gpu::DeviceArray&lt;T&gt;::swap</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a>&amp; other_arg) { <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a70dc06ec14d680c4b97f71575ef6a963">DeviceMemory::swap</a>(other_arg); }</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a572c62a9e2ba3993152c35d3cfef2e44">   64</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray&lt;T&gt;::operator</a> T*() { <span class="keywordflow">return</span> ptr(); }</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a028d709af3eec5cfadabdc4a28657273">   65</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray&lt;T&gt;::operator</a> <span class="keyword">const</span> T*() <span class="keyword">const</span> { <span class="keywordflow">return</span> ptr(); }</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">   66</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">pcl::gpu::DeviceArray&lt;T&gt;::size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> sizeBytes() / elem_size; }</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a0573ce7da4c93785a2329b20d8e78484">   67</a></span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#ae74e73c5e09d3bc9f4e35745f8fdefd6">   68</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span>       T* <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#ae74e73c5e09d3bc9f4e35745f8fdefd6">pcl::gpu::DeviceArray&lt;T&gt;::ptr</a>()       { <span class="keywordflow">return</span> DeviceMemory::ptr&lt;T&gt;(); }</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#acf2a181dc9c654f57d4ed6eb6f8f0c23">   69</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keyword">const</span> T* <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#ae74e73c5e09d3bc9f4e35745f8fdefd6">pcl::gpu::DeviceArray&lt;T&gt;::ptr</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> DeviceMemory::ptr&lt;T&gt;(); }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#abc8b351d3617e83cfe081cfcddffab60">   71</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">template</span>&lt;<span class="keyword">class</span> A&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a2c37bf39d8afe561cfb3fcb15fff0a82">pcl::gpu::DeviceArray&lt;T&gt;::upload</a>(<span class="keyword">const</span> std::vector&lt;T, A&gt;&amp; data) { upload(&amp;data[0], data.size()); }</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#af13ad05c8e58f44e64762753862c1439">   72</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">template</span>&lt;<span class="keyword">class</span> A&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a86641905b12549130d92aaf90a85ac87">pcl::gpu::DeviceArray&lt;T&gt;::download</a>(std::vector&lt;T, A&gt;&amp; data)<span class="keyword"> const </span>{ data.resize(size()); <span class="keywordflow">if</span> (!data.empty()) download(&amp;data[0]); }</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab4b26e88428124ae66da23dda2cc8d17">   76</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab4b26e88428124ae66da23dda2cc8d17">pcl::gpu::DeviceArray2D&lt;T&gt;::DeviceArray2D</a>() {}</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#a94bb2ece46527193a5dbfb6ae0c83af9">   77</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab4b26e88428124ae66da23dda2cc8d17">pcl::gpu::DeviceArray2D&lt;T&gt;::DeviceArray2D</a>(<span class="keywordtype">int</span> rows, <span class="keywordtype">int</span> cols) : <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a>(rows, cols * elem_size) {}</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#aad1b32819f9739f0783229878025459e">   78</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab4b26e88428124ae66da23dda2cc8d17">pcl::gpu::DeviceArray2D&lt;T&gt;::DeviceArray2D</a>(<span class="keywordtype">int</span> rows, <span class="keywordtype">int</span> cols, <span class="keywordtype">void</span> *data, <span class="keywordtype">size_t</span> stepBytes) : <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a>(rows, cols * elem_size, data, stepBytes) {}</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#a283e4552af83e048d46b1195c106fc74">   79</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab4b26e88428124ae66da23dda2cc8d17">pcl::gpu::DeviceArray2D&lt;T&gt;::DeviceArray2D</a>(<span class="keyword">const</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a>&amp; other) : <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a>(other) {}</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab10255289085781049e9797166e7bead">   80</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D&lt;T&gt;</a>&amp; <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab10255289085781049e9797166e7bead">pcl::gpu::DeviceArray2D&lt;T&gt;::operator=</a>(<span class="keyword">const</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a>&amp; other)</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#aee94d2ab8575b2e1ac9a5647e1c8f889">   81</a></span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ac5f7ab83f0c64c4055924ddeadc84c72">DeviceMemory2D::operator=</a>(other); <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#a7d08a86e9025af4257e382b0c4813bb8">   83</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a7d08a86e9025af4257e382b0c4813bb8">pcl::gpu::DeviceArray2D&lt;T&gt;::create</a>(<span class="keywordtype">int</span> rows, <span class="keywordtype">int</span> cols) </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a88c1a90c1ee03617dbfe112eaaae914a">   84</a></span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab">DeviceMemory2D::create</a>(rows, cols * elem_size); }</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#a6c03f8040c494e9dc611b1b3631265f3">   85</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a6c03f8040c494e9dc611b1b3631265f3">pcl::gpu::DeviceArray2D&lt;T&gt;::release</a>()  </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae81f9c2cf5e6c5f542a58a05b431a30c">DeviceMemory2D::release</a>(); }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#adec6184af572be3d9d5d5857468a0ea1">   88</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#adec6184af572be3d9d5d5857468a0ea1">pcl::gpu::DeviceArray2D&lt;T&gt;::copyTo</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a>&amp; other)<span class="keyword"> const</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a4299ebb216c82bc4d17d38b7d5999f67">   89</a></span>&#160;<span class="keyword"></span>{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#af67bb317d0e95c5999927b90071b1164">DeviceMemory2D::copyTo</a>(other); }</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab81307510c41ba799ad755ba3ca9ec65">   90</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab81307510c41ba799ad755ba3ca9ec65">pcl::gpu::DeviceArray2D&lt;T&gt;::upload</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *host_ptr, <span class="keywordtype">size_t</span> host_step, <span class="keywordtype">int</span> rows, <span class="keywordtype">int</span> cols) </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#af0d12aab6d2bea03fc7dcdd5974d3bf4">DeviceMemory2D::upload</a>(host_ptr, host_step, rows, cols * elem_size); }</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#adcab7e802fa4cc9df4cfd712d65e529b">   92</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#adcab7e802fa4cc9df4cfd712d65e529b">pcl::gpu::DeviceArray2D&lt;T&gt;::download</a>(<span class="keywordtype">void</span> *host_ptr, <span class="keywordtype">size_t</span> host_step)<span class="keyword"> const </span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keyword"></span>{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11f9cbf4e4809268d52323e6e52a63f3">DeviceMemory2D::download</a>( host_ptr, host_step ); }</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#a1efe4af839046f6f3a481befc6494d7b">   95</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">template</span>&lt;<span class="keyword">class</span> A&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab81307510c41ba799ad755ba3ca9ec65">pcl::gpu::DeviceArray2D&lt;T&gt;::upload</a>(<span class="keyword">const</span> std::vector&lt;T, A&gt;&amp; data, <span class="keywordtype">int</span> cols) </div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;{ upload(&amp;data[0], cols * elem_size, data.size()/cols, cols); }</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a8503cd07a0b5cb1dbd71e2b0e83c9e63">   97</a></span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#acc5f04bb3c482a9732211e00610610ce">   98</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">template</span>&lt;<span class="keyword">class</span> A&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#adcab7e802fa4cc9df4cfd712d65e529b">pcl::gpu::DeviceArray2D&lt;T&gt;::download</a>(std::vector&lt;T, A&gt;&amp; data, <span class="keywordtype">int</span>&amp; elem_step)<span class="keyword"> const </span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="keyword"></span>{ elem_step = cols(); data.resize(cols() * rows()); <span class="keywordflow">if</span> (!data.empty()) download(&amp;data[0], colsBytes());  }</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4eacca5621b230625b93ea5daa40cc38">  101</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keywordtype">void</span>  <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4eacca5621b230625b93ea5daa40cc38">pcl::gpu::DeviceArray2D&lt;T&gt;::swap</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html">DeviceArray2D</a>&amp; other_arg) { <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a17a2b3c9f026bbf7438c01cd905e0003">DeviceMemory2D::swap</a>(other_arg); }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#a88a762589a04a71d577ec51521a2eaa9">  103</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span>       T* <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a88a762589a04a71d577ec51521a2eaa9">pcl::gpu::DeviceArray2D&lt;T&gt;::ptr</a>(<span class="keywordtype">int</span> y)       { <span class="keywordflow">return</span> DeviceMemory2D::ptr&lt;T&gt;(y); }</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#a5210d69162bdac03727c46456f0a9324">  104</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keyword">const</span> T* <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a88a762589a04a71d577ec51521a2eaa9">pcl::gpu::DeviceArray2D&lt;T&gt;::ptr</a>(<span class="keywordtype">int</span> y)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> DeviceMemory2D::ptr&lt;T&gt;(y); }</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            </div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#a86d50b64a5b1e3aab3802d15a3f50260">  106</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D&lt;T&gt;::operator</a> T*() { <span class="keywordflow">return</span> ptr(); }</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#ab00747ab88ca7f6d0a68ec91e5c9610f">  107</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D&lt;T&gt;::operator</a> <span class="keyword">const</span> T*() <span class="keyword">const</span> { <span class="keywordflow">return</span> ptr(); }</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#a86641905b12549130d92aaf90a85ac87">  108</a></span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">  109</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">pcl::gpu::DeviceArray2D&lt;T&gt;::cols</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4fc62bd30bd21517dce88ac203d34814">DeviceMemory2D::colsBytes</a>()/elem_size; }</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">  110</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">pcl::gpu::DeviceArray2D&lt;T&gt;::rows</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a8f7adab9d87fe92576886591df5a5aa1">DeviceMemory2D::rows</a>(); }</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array2_d.html#ad37b25b78c567b9b219a37b48a7c3f0f">  112</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="classpcl_1_1gpu_1_1_device_array2_d.html#ad37b25b78c567b9b219a37b48a7c3f0f">pcl::gpu::DeviceArray2D&lt;T&gt;::elem_step</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a526d188921b4d2d5e01a0911395b8b6e">DeviceMemory2D::step</a>()/elem_size; }</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_array.html#abc8b351d3617e83cfe081cfcddffab60">  114</a></span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* PCL_GPU_CONTAINER_DEVICE_ARRAY_IMPL_HPP_ */</span><span class="preprocessor"> </span></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html">pcl::gpu::DeviceArray2D</a></div><div class="ttdoc">DeviceArray2D class</div><div class="ttdef"><b>Definition:</b> device_array.h:155</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_a4080acdcf546b3a92bcabc64efe9e146"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#a4080acdcf546b3a92bcabc64efe9e146">pcl::gpu::DeviceArray2D::rows</a></div><div class="ttdeci">int rows() const</div><div class="ttdoc">Returns number of rows.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:110</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_a4eacca5621b230625b93ea5daa40cc38"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#a4eacca5621b230625b93ea5daa40cc38">pcl::gpu::DeviceArray2D::swap</a></div><div class="ttdeci">void swap(DeviceArray2D &amp;other_arg)</div><div class="ttdoc">Performs swap of data pointed with another device array.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:101</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_a6c03f8040c494e9dc611b1b3631265f3"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#a6c03f8040c494e9dc611b1b3631265f3">pcl::gpu::DeviceArray2D::release</a></div><div class="ttdeci">void release()</div><div class="ttdoc">Decrements reference counter and releases internal buffer if needed.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:85</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_a742e5df59300e02c16e5d60ff70507e9"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#a742e5df59300e02c16e5d60ff70507e9">pcl::gpu::DeviceArray2D::cols</a></div><div class="ttdeci">int cols() const</div><div class="ttdoc">Returns number of elements in each row.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:109</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_a7d08a86e9025af4257e382b0c4813bb8"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#a7d08a86e9025af4257e382b0c4813bb8">pcl::gpu::DeviceArray2D::create</a></div><div class="ttdeci">void create(int rows, int cols)</div><div class="ttdoc">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...</div><div class="ttdef"><b>Definition:</b> device_array.hpp:83</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_a88a762589a04a71d577ec51521a2eaa9"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#a88a762589a04a71d577ec51521a2eaa9">pcl::gpu::DeviceArray2D::ptr</a></div><div class="ttdeci">T * ptr(int y=0)</div><div class="ttdoc">Returns pointer to given row in internal buffer.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:103</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_ab10255289085781049e9797166e7bead"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#ab10255289085781049e9797166e7bead">pcl::gpu::DeviceArray2D::operator=</a></div><div class="ttdeci">DeviceArray2D &amp; operator=(const DeviceArray2D &amp;other)</div><div class="ttdoc">Assigment operator. Just increments reference counter.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:80</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_ab4b26e88428124ae66da23dda2cc8d17"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#ab4b26e88428124ae66da23dda2cc8d17">pcl::gpu::DeviceArray2D::DeviceArray2D</a></div><div class="ttdeci">DeviceArray2D()</div><div class="ttdoc">Empty constructor.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:76</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_ab81307510c41ba799ad755ba3ca9ec65"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#ab81307510c41ba799ad755ba3ca9ec65">pcl::gpu::DeviceArray2D::upload</a></div><div class="ttdeci">void upload(const void *host_ptr, size_t host_step, int rows, int cols)</div><div class="ttdoc">Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer...</div><div class="ttdef"><b>Definition:</b> device_array.hpp:90</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_ad37b25b78c567b9b219a37b48a7c3f0f"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#ad37b25b78c567b9b219a37b48a7c3f0f">pcl::gpu::DeviceArray2D::elem_step</a></div><div class="ttdeci">size_t elem_step() const</div><div class="ttdoc">Returns step in elements.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:112</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_adcab7e802fa4cc9df4cfd712d65e529b"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#adcab7e802fa4cc9df4cfd712d65e529b">pcl::gpu::DeviceArray2D::download</a></div><div class="ttdeci">void download(void *host_ptr, size_t host_step) const</div><div class="ttdoc">Downloads data from internal buffer to CPU memory. User is resposible for correct host buffer size.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:92</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array2_d_html_adec6184af572be3d9d5d5857468a0ea1"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array2_d.html#adec6184af572be3d9d5d5857468a0ea1">pcl::gpu::DeviceArray2D::copyTo</a></div><div class="ttdeci">void copyTo(DeviceArray2D &amp;other) const</div><div class="ttdoc">Performs data copying. If destination size differs it will be reallocated.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:88</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray</a></div><div class="ttdoc">DeviceArray class</div><div class="ttdef"><b>Definition:</b> device_array.h:58</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_a0573ce7da4c93785a2329b20d8e78484"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#a0573ce7da4c93785a2329b20d8e78484">pcl::gpu::DeviceArray::DeviceArray</a></div><div class="ttdeci">DeviceArray()</div><div class="ttdoc">Empty constructor.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:43</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_a2c37bf39d8afe561cfb3fcb15fff0a82"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#a2c37bf39d8afe561cfb3fcb15fff0a82">pcl::gpu::DeviceArray::upload</a></div><div class="ttdeci">void upload(const T *host_ptr, size_t size)</div><div class="ttdoc">Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer...</div><div class="ttdef"><b>Definition:</b> device_array.hpp:57</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_a4299ebb216c82bc4d17d38b7d5999f67"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#a4299ebb216c82bc4d17d38b7d5999f67">pcl::gpu::DeviceArray::create</a></div><div class="ttdeci">void create(size_t size)</div><div class="ttdoc">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...</div><div class="ttdef"><b>Definition:</b> device_array.hpp:50</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_a8503cd07a0b5cb1dbd71e2b0e83c9e63"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#a8503cd07a0b5cb1dbd71e2b0e83c9e63">pcl::gpu::DeviceArray::copyTo</a></div><div class="ttdeci">void copyTo(DeviceArray &amp;other) const</div><div class="ttdoc">Performs data copying. If destination size differs it will be reallocated.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:55</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_a86641905b12549130d92aaf90a85ac87"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#a86641905b12549130d92aaf90a85ac87">pcl::gpu::DeviceArray::download</a></div><div class="ttdeci">void download(T *host_ptr) const</div><div class="ttdoc">Downloads data from internal buffer to CPU memory</div><div class="ttdef"><b>Definition:</b> device_array.hpp:59</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_a88c1a90c1ee03617dbfe112eaaae914a"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#a88c1a90c1ee03617dbfe112eaaae914a">pcl::gpu::DeviceArray::operator=</a></div><div class="ttdeci">DeviceArray &amp; operator=(const DeviceArray &amp;other)</div><div class="ttdoc">Assigment operator. Just increments reference counter.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:47</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_a8b5e94bc49303dc096acdf74d3b7059a"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#a8b5e94bc49303dc096acdf74d3b7059a">pcl::gpu::DeviceArray::swap</a></div><div class="ttdeci">void swap(DeviceArray &amp;other_arg)</div><div class="ttdoc">Performs swap of data pointed with another device array.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:62</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_aab15724cf2bb42abd87c69a7eb3ec733"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#aab15724cf2bb42abd87c69a7eb3ec733">pcl::gpu::DeviceArray::release</a></div><div class="ttdeci">void release()</div><div class="ttdoc">Decrements reference counter and releases internal buffer if needed.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:52</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_acbd2988863a217bc7159391b9ad960e0"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">pcl::gpu::DeviceArray::size</a></div><div class="ttdeci">size_t size() const</div><div class="ttdoc">Returns size in elements.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:66</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_ae74e73c5e09d3bc9f4e35745f8fdefd6"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#ae74e73c5e09d3bc9f4e35745f8fdefd6">pcl::gpu::DeviceArray::ptr</a></div><div class="ttdeci">T * ptr()</div><div class="ttdoc">Returns pointer for internal buffer in GPU memory.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:68</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html">pcl::gpu::DeviceMemory2D</a></div><div class="ttdoc">DeviceMemory2D class</div><div class="ttdef"><b>Definition:</b> device_memory.h:144</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a11f9cbf4e4809268d52323e6e52a63f3"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11f9cbf4e4809268d52323e6e52a63f3">pcl::gpu::DeviceMemory2D::download</a></div><div class="ttdeci">void download(void *host_ptr_arg, size_t host_step_arg) const</div><div class="ttdoc">Downloads data from internal buffer to CPU memory. User is resposible for correct host buffer size.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a17a2b3c9f026bbf7438c01cd905e0003"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a17a2b3c9f026bbf7438c01cd905e0003">pcl::gpu::DeviceMemory2D::swap</a></div><div class="ttdeci">void swap(DeviceMemory2D &amp;other_arg)</div><div class="ttdoc">Performs swap of data pointed with another device memory.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a4e03c08aabf9c020cbe3d92d2b3434ab"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab">pcl::gpu::DeviceMemory2D::create</a></div><div class="ttdeci">void create(int rows_arg, int colsBytes_arg)</div><div class="ttdoc">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a4fc62bd30bd21517dce88ac203d34814"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4fc62bd30bd21517dce88ac203d34814">pcl::gpu::DeviceMemory2D::colsBytes</a></div><div class="ttdeci">int colsBytes() const</div><div class="ttdoc">Returns number of bytes in each row.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a526d188921b4d2d5e01a0911395b8b6e"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a526d188921b4d2d5e01a0911395b8b6e">pcl::gpu::DeviceMemory2D::step</a></div><div class="ttdeci">size_t step() const</div><div class="ttdoc">Returns stride between two consecutive rows in bytes for internal buffer. Step is stored always and e...</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a8f7adab9d87fe92576886591df5a5aa1"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a8f7adab9d87fe92576886591df5a5aa1">pcl::gpu::DeviceMemory2D::rows</a></div><div class="ttdeci">int rows() const</div><div class="ttdoc">Returns number of rows.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_ac5f7ab83f0c64c4055924ddeadc84c72"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#ac5f7ab83f0c64c4055924ddeadc84c72">pcl::gpu::DeviceMemory2D::operator=</a></div><div class="ttdeci">DeviceMemory2D &amp; operator=(const DeviceMemory2D &amp;other_arg)</div><div class="ttdoc">Assigment operator. Just increments reference counter.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_ae81f9c2cf5e6c5f542a58a05b431a30c"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae81f9c2cf5e6c5f542a58a05b431a30c">pcl::gpu::DeviceMemory2D::release</a></div><div class="ttdeci">void release()</div><div class="ttdoc">Decrements reference counter and releases internal buffer if needed.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_af0d12aab6d2bea03fc7dcdd5974d3bf4"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#af0d12aab6d2bea03fc7dcdd5974d3bf4">pcl::gpu::DeviceMemory2D::upload</a></div><div class="ttdeci">void upload(const void *host_ptr_arg, size_t host_step_arg, int rows_arg, int colsBytes_arg)</div><div class="ttdoc">Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer...</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_af67bb317d0e95c5999927b90071b1164"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#af67bb317d0e95c5999927b90071b1164">pcl::gpu::DeviceMemory2D::copyTo</a></div><div class="ttdeci">void copyTo(DeviceMemory2D &amp;other) const</div><div class="ttdoc">Performs data copying. If destination size differs it will be reallocated.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html">pcl::gpu::DeviceMemory</a></div><div class="ttdoc">DeviceMemory class</div><div class="ttdef"><b>Definition:</b> device_memory.h:56</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a139fb950f850ab013e4cbd1d8c758b62"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62">pcl::gpu::DeviceMemory::create</a></div><div class="ttdeci">void create(size_t sizeBytes_arg)</div><div class="ttdoc">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a5a6aec629c498c532916994f8188ad61"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a5a6aec629c498c532916994f8188ad61">pcl::gpu::DeviceMemory::upload</a></div><div class="ttdeci">void upload(const void *host_ptr_arg, size_t sizeBytes_arg)</div><div class="ttdoc">Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer...</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a70dc06ec14d680c4b97f71575ef6a963"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a70dc06ec14d680c4b97f71575ef6a963">pcl::gpu::DeviceMemory::swap</a></div><div class="ttdeci">void swap(DeviceMemory &amp;other_arg)</div><div class="ttdoc">Performs swap of data pointed with another device memory.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_aabaa701031e413b93ac832f95bc3ff08"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#aabaa701031e413b93ac832f95bc3ff08">pcl::gpu::DeviceMemory::operator=</a></div><div class="ttdeci">DeviceMemory &amp; operator=(const DeviceMemory &amp;other_arg)</div><div class="ttdoc">Assigment operator. Just increments reference counter.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_aac0093c66cf01a571cd16815e1189c84"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#aac0093c66cf01a571cd16815e1189c84">pcl::gpu::DeviceMemory::copyTo</a></div><div class="ttdeci">void copyTo(DeviceMemory &amp;other) const</div><div class="ttdoc">Performs data copying. If destination size differs it will be reallocated.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_abc6efdb6b6a67dec7760509443beffe4"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#abc6efdb6b6a67dec7760509443beffe4">pcl::gpu::DeviceMemory::release</a></div><div class="ttdeci">void release()</div><div class="ttdoc">Decrements reference counter and releases internal buffer if needed.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_ad3dde5e26915ca28d8ce521edf211464"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#ad3dde5e26915ca28d8ce521edf211464">pcl::gpu::DeviceMemory::download</a></div><div class="ttdeci">void download(void *host_ptr_arg) const</div><div class="ttdoc">Downloads data from internal buffer to CPU memory</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_6b3ae6988449b0834e9596fad5d75199.html">gpu</a></li><li class="navelem"><a class="el" href="dir_dcd24c8b03a1a635627c46bb41858b15.html">containers</a></li><li class="navelem"><a class="el" href="dir_e826ef451ea7595e8421b42dc2e323d6.html">include</a></li><li class="navelem"><a class="el" href="dir_c4fc1bcb115cad570170efa6ba494b01.html">pcl</a></li><li class="navelem"><a class="el" href="dir_93c22ca180983c10c19c9dd1dd74f4fb.html">gpu</a></li><li class="navelem"><a class="el" href="dir_b704cca41b4ca7c72f1d82e4f17e5fcb.html">containers</a></li><li class="navelem"><a class="el" href="dir_aaa3e30e99446545fef665c65a9ab731.html">impl</a></li><li class="navelem"><b>device_array.hpp</b></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
